{/include file="simpla/common/header.html"/}
{/include file="simpla/common/left.html"/}
<div id="main-content">
	<h2>欢迎您 {/$_adminname/}</h2>
	<p id="page-intro">查看和管理商品库存。商品名称可以输入中文或泰文名</p>
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3>入库单列表</h3>
			<ul class="content-box-tabs">
				<li><a href="#tab1" class="default-tab">入库单管理</a></li>
				<li><a href="{/get_url rule="/stockin/stockin"/}">新增入库</a></li>
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div class="tab-content default-tab" id="tab1">
				<div class="form">
					<form action="{/get_url rule='/stockin/index'/}" method="post" id="js-form">
						<fieldset class="clearfix">
							<table>
								<tr>
									<td class="input-label short-label">
										入库单编号：
									</td>
									<td>
										<span><input type="text" name="key_ssn" value="{/$key.ssn/}" class="text-input" size="24" /></span>
									</td>
									<td class="input-label short-label"></td>
									<td></td>
								</tr>
								<tr>
									<td class="input-label">
										商品编号：
									</td>
									<td>
										<span><input type="text" name="key_gsn" value="{/$key.gsn/}" class="text-input" size="24"/></span>
									</td>
									<td class="input-label">商品名称：</td>
									<td>
										<span><input type="text" name="key_name" value="{/$key.name/}" class="text-input" size="48"/></span>
									</td>
								</tr>
								<tr>
									<td class="input-label">日期范围：</td>
									<td colspan="2">
										<input type="text" name="date_start" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="text-input" size="12" value="{/$key.date_start/}"/>&nbsp;--&nbsp;<input type="text" name="date_end" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="text-input" size="12" value="{/$key.date_end/}"/>（格式1900-01-01）
									</td>
									<td>
										<input type="submit" name="filter" id="button" class="button" value="查询" />&nbsp;&nbsp;<input type="submit" name="export" id="button" class="button" value="导出" />
									</td>
								</tr>
							</table>
						</fieldset>
					</form>
				</div>
				<hr />
				<table class="centertable">
					<thead>
						<tr>
							<th>入库单编号</th>
							<th>商品编码</th>
							<th>商品名称(中)</th>
							<th>商品名称(泰)</th>
							<th>数量(件)</th>
							<th>装箱数量</th>
							<th>备注</th>
							<th>日期</th>
							<th>管理</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<td colspan="9">{/$pagebar/}</td>
						</tr>
					</tfoot>
					<tbody>
						{/section name=i loop=$stockin/}
						<tr>
							<td>{/$stockin[i].stockin_sn/}</td>
							<td>{/$stockin[i].goods_sn/}</td>
							<td>{/$stockin[i].goods_name_chn/}</td>
							<td>{/$stockin[i].goods_name_tha/}</td>
							<td>{/$stockin[i].goods_pack_num/}</td>
							<td>{/$stockin[i].goods_pack_size/}</td>
							<td>{/$stockin[i].stockin_note/}</td>
							<td>{/$stockin[i].stockin_opttime/}</td>
							<td><a onclick="return(confirm('只有入库错误的时候才使用，你确认入库错误?'))" href="{/get_url rule='/stockin/stockin' data='ac=del&sid='|cat:$stockin[i].stockin_sn/}" title="删除"><img src="{/$root_dir/}/assets/simpla/images/icons/cross.png" alt="删除" /></a>&nbsp;<a href="{/get_url rule='/stockin/stockin' data='ac=mod&sid='|cat:$stockin[i].stockin_sn/}" title="修改"><img src="{/$root_dir/}/assets/simpla/images/icons/hammer_screwdriver.png" alt="修改" /></a></td>
						</tr>
						{/sectionelse/}
						<tr>
							<td colspan="9" align="center">没有数据</td>
						</tr>
						{//section/}
					</tbody>
				</table>
			</div>
		</div>
	</div>
	{/include file="simpla/common/copy.html"/} </div>
{/include file="simpla/common/footer.html"/}
